package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.feign.fallback.ThirdPartyFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @create: 2024/9/5
 * @author: gyhe10
 * @description: 远程调用 third-party 服务的 Feign 接口
 **/

@FeignClient(value = "gulimall-third-party", fallback = ThirdPartyFeignServiceFallback.class)
public interface ThirdPartyFeignService {

    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
